FROM ghcr.io/coqui-ai/tts-cpu:latest
USER root
COPY bin /home/soft/tts/bin
COPY config /home/soft/tts/config
RUN mkdir -p /data/tts_output && mkdir -p /data/models/  && chmod  +x /home/soft/tts/bin/gbes-tts-server
VOLUME ["/data/tts_output","/data/models/","/home/soft/tts/config/"]
ENV PATH=$PATH:/home/soft/tts/bin/
ENV LANG=C.utf8
ENV TZ=Asia/Shanghai
ENV GIN_MODE=release
WORKDIR /data/tts_output
ENTRYPOINT ["gbes-tts-server"]
CMD ["-c","/home/soft/tts/config/config.yaml"]
